<template>
  <div>
    <router-view></router-view>
    <van-tabbar v-model="active" active-color="blue" inactive-color="#000" >
     
     
      <van-tabbar-item icon="home-o" to="cook">首页</van-tabbar-item>
      <van-tabbar-item icon="manager-o" to="cate">患者</van-tabbar-item>
      <van-tabbar-item icon="contact" to="myhome">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import Vue from "vue";
import { Tabbar, TabbarItem } from "vant";
import { Icon } from "vant";

Vue.use(Icon);
Vue.use(Tabbar);
Vue.use(TabbarItem);
export default {
  data() {
    return {
      active: 0,
      icon: {
        active: "https://img01.yzcdn.cn/vant/user-active.png",
        inactive: "https://img01.yzcdn.cn/vant/user-inactive.png",
      },
    };
  },
};
</script>

<style lang="scss"></style>
